﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sentrana_QA.BlueRidgeTest.Common.Helper
{
    public static class EmailHelper
    {
        public static string GetNewUniqueEmailAddress(string email_to_modify)
        {
            if (!string.IsNullOrEmpty(email_to_modify))
            {
                string email = email_to_modify.Split('@')[0];

                email += "_" + new Random().Next(10, 1000) + DateTime.Now.Millisecond.ToString() + "@yahoo.com";

                return email;
            }
            else
                return "";

        }
    }
}
